/* 系统管理页面样式 */

/* 页面头部 */
.page-header {
    background: white;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.header-right .el-button-group {
    display: flex;
    gap: 12px;
}

/* 主要内容区 */
.main-content {
    padding: 0 24px;
}

/* 功能导航 */
.function-nav {
    background: white;
    padding: 0 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.function-nav .el-tabs__nav {
    border: none;
}

.function-nav .el-tabs__item {
    height: 56px;
    line-height: 56px;
    font-size: 15px;
}

.function-nav .el-tabs__item i {
    margin-right: 8px;
    font-size: 16px;
}

/* 标签页内容 */
.tab-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    width: 300px;
}

/* 用户管理 */
.user-list {
    margin-bottom: 20px;
}

.delete-btn {
    color: #f56c6c;
}

.delete-btn:hover {
    color: #f78989;
}

/* 角色权限 */
.role-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.role-card {
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.role-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.role-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.role-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permission-tag {
    background: #f3f4f6;
    border: none;
}

/* 系统配置 */
.settings-form {
    max-width: 800px;
}

.settings-card {
    margin-bottom: 24px;
}

.settings-card:last-child {
    margin-bottom: 0;
}

.settings-card .el-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.settings-card .el-card__header span {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.logo-uploader {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 178px;
    height: 178px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-uploader:hover {
    border-color: #409eff;
}

.logo-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
}

.logo {
    width: 178px;
    height: 178px;
    display: block;
    object-fit: contain;
}

.unit {
    margin-left: 8px;
    color: #6b7280;
}

/* 日志管理 */
.log-list {
    margin-bottom: 20px;
}

/* 表格样式 */
.el-table {
    margin-bottom: 20px;
}

.el-table th {
    background-color: #f9fafb !important;
    color: #374151;
    font-weight: 600;
}

.el-table td {
    color: #4b5563;
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

/* 按钮样式 */
.el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6d4c98 100%);
}

.el-button--success {
    background: #10b981;
    border: none;
}

.el-button--success:hover {
    background: #059669;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        width: 100%;
    }

    .header-right .el-button-group {
        width: 100%;
    }

    .header-right .el-button {
        flex: 1;
    }

    .main-content {
        padding: 0 16px;
    }

    .content-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .role-list {
        grid-template-columns: 1fr;
    }

    .settings-form {
        max-width: 100%;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .page-header,
    .function-nav,
    .tab-content {
        background: #1f2937;
    }

    .header-left h1,
    .function-nav .el-tabs__item,
    .role-header h3,
    .settings-card .el-card__header span {
        color: #f9fafb;
    }

    .role-description {
        color: #9ca3af;
    }

    .permission-tag {
        background: #374151;
        color: #f9fafb;
    }

    .logo-uploader {
        border-color: #4b5563;
    }

    .logo-uploader-icon {
        color: #6b7280;
    }

    .unit {
        color: #9ca3af;
    }

    .el-table th {
        background-color: #111827 !important;
        color: #f9fafb;
    }

    .el-table td {
        color: #d1d5db;
    }

    .settings-card .el-card__header {
        border-bottom-color: #374151;
    }
}

.header-logo {
	height: 48px;
	width: auto;
} 